/**
 *Copyright (c) 2003, 2018, UMF and/or its affiliates. All rights reserved.
 */
package com.umf.b2b.model.register;

import com.umf.b2b.MerchantBaseRequest;
import com.umpay.dto.UMFResponse.Message;
import com.umpay.util.UMFUtil;

/**
<p>Title:MemberInfo</p>  
<p>Description: ���̻���Ϣ��ѯ</p>
 */
public class MemberInfo extends MerchantBaseRequest {

	//****user_id��sub_mer_id����������ѡһ����****
	
	private String sub_mer_id;//����ѡ����һ��[��Ӧ����]�����̻����̻�ƽ̨�е�Ψһ��ţ������̻�ע��ʱ���������������ڴ����˻�
	private String user_id;//����ѡ����һ��[��Ӧ����]�����̻�ע��ɹ����������𷵻ص��˻���ţ�
	
	private String url = "/member/memberInfo";//�������
	
	private String audit_state;//[��Ӧ����]�����״̬��1-������ 2-����ͨ�� 3-������ͨ��
	private String sub_mer_type;//[��Ӧ����]�����̻����ͣ�1-���� 2-���� 3-��ҵ�̻�
	private String sub_mer_name;//[��Ӧ����]�����̻�����
	private String sub_mer_alias;//[��Ӧ����]�����̻�����
	private String cert_type;//[��Ӧ����]��֤�����ͣ�1-Ӫҵִ�� 2-ͳһ������ô���
	private String cert_id;//[��Ӧ����]��֤�պţ�cert_type=1��2ʱ����
	private String legal_name;//[��Ӧ����]����������
	private String identity_id;//[��Ӧ����]�����֤���ţ�ǰ��λ�ͺ���λ���м��ڵ�����
	private String contacts_name;//[��Ӧ����]����ϵ��
	private String mobile_id;//[��Ӧ����]����ϵ���ֻ���

	@Override
	public String getRequestUrl() {
		return baseUrl + url;
	}

	@Override
	public MemberInfo doRequest() throws Exception {
		Message<MemberInfo> response = UMFUtil.get(createAPIContext(), this,MemberInfo.class);
		MerchantBaseRequest baseResult = convertResult(response, MemberInfo.class);
		if(baseResult == null)
			return null;
		return (MemberInfo)baseResult;
	}
	
	public String getMer_id() {
		return mer_id;
	}

	public void setMer_id(String mer_id) {
		this.mer_id = mer_id;
	}

	public String getMobile_id() {
		return mobile_id;
	}

	public void setMobile_id(String mobile_id) {
		this.mobile_id = mobile_id;
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	String getSub_mer_id() {
		return sub_mer_id;
	}

	void setSub_mer_id(String sub_mer_id) {
		this.sub_mer_id = sub_mer_id;
	}

	String getAudit_state() {
		return audit_state;
	}

	void setAudit_state(String audit_state) {
		this.audit_state = audit_state;
	}

	String getSub_mer_type() {
		return sub_mer_type;
	}

	void setSub_mer_type(String sub_mer_type) {
		this.sub_mer_type = sub_mer_type;
	}

	String getSub_mer_name() {
		return sub_mer_name;
	}

	void setSub_mer_name(String sub_mer_name) {
		this.sub_mer_name = sub_mer_name;
	}

	String getSub_mer_alias() {
		return sub_mer_alias;
	}

	void setSub_mer_alias(String sub_mer_alias) {
		this.sub_mer_alias = sub_mer_alias;
	}

	String getCert_type() {
		return cert_type;
	}

	void setCert_type(String cert_type) {
		this.cert_type = cert_type;
	}

	String getCert_id() {
		return cert_id;
	}

	void setCert_id(String cert_id) {
		this.cert_id = cert_id;
	}

	String getLegal_name() {
		return legal_name;
	}

	void setLegal_name(String legal_name) {
		this.legal_name = legal_name;
	}

	String getIdentity_id() {
		return identity_id;
	}

	void setIdentity_id(String identity_id) {
		this.identity_id = identity_id;
	}

	String getContacts_name() {
		return contacts_name;
	}

	void setContacts_name(String contacts_name) {
		this.contacts_name = contacts_name;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("MemberInfo [sub_mer_id=");
		builder.append(sub_mer_id);
		builder.append(", user_id=");
		builder.append(user_id);
		builder.append(", url=");
		builder.append(url);
		builder.append(", audit_state=");
		builder.append(audit_state);
		builder.append(", sub_mer_type=");
		builder.append(sub_mer_type);
		builder.append(", sub_mer_name=");
		builder.append(sub_mer_name);
		builder.append(", sub_mer_alias=");
		builder.append(sub_mer_alias);
		builder.append(", cert_type=");
		builder.append(cert_type);
		builder.append(", cert_id=");
		builder.append(cert_id);
		builder.append(", legal_name=");
		builder.append(legal_name);
		builder.append(", identity_id=");
		builder.append(identity_id);
		builder.append(", contacts_name=");
		builder.append(contacts_name);
		builder.append(", mobile_id=");
		builder.append(mobile_id);
		builder.append(", version=");
		builder.append(version);
		builder.append(", mer_id=");
		builder.append(mer_id);
		builder.append(", ret_code=");
		builder.append(ret_code);
		builder.append(", ret_msg=");
		builder.append(ret_msg);
		builder.append(", links=");
		builder.append(links);
		builder.append("]");
		return builder.toString();
	}

}
